<?php
/* 
 * ebiz front
 * 
 * Marketing Model
 * 
 * @author allen
 * 
 */

require_once '../app/core/models/BaseDao.php';
require_once '../app/core/db/DBUtil.class.php';

class MarketingDao extends BaseDao 
{
	private $tableName = "marketing_mappings";
	     
    public function __construct($dbUtil){
    	parent::__construct($dbUtil);        
    }
    
    public function getByKey($key){
        $paraArray=array($key);
        $sql="select * from $this->tableName where lower(mapping_key) = ? and is_delete = 0";
        return $this->dbUtil->SelectData($sql,$paraArray);
    }
    
    
}

